package GenericNRMSystem;
/**
 * Generated from IDL enum "EndPointStatusType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class EndPointStatusType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _configureNotInUse = 0;
	public static final EndPointStatusType configureNotInUse = new EndPointStatusType(_configureNotInUse);
	public static final int _configureCanNotUse = 1;
	public static final EndPointStatusType configureCanNotUse = new EndPointStatusType(_configureCanNotUse);
	public static final int _configureInUse = 2;
	public static final EndPointStatusType configureInUse = new EndPointStatusType(_configureInUse);
	public int value()
	{
		return value;
	}
	public static EndPointStatusType from_int(int value)
	{
		switch (value) {
			case _configureNotInUse: return configureNotInUse;
			case _configureCanNotUse: return configureCanNotUse;
			case _configureInUse: return configureInUse;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _configureNotInUse: return "configureNotInUse";
			case _configureCanNotUse: return "configureCanNotUse";
			case _configureInUse: return "configureInUse";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected EndPointStatusType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
